<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<html>
	<head>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/reset-fonts.css" type="text/css"
          media="screen, projection"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/gt-styles.css" type="text/css"
          media="screen, projection"/>
        </head>
        <body onload="document.forms[0].j_username.focus();">
      <div align="center"  style="margin-top:200;">

       <div>
          <h3> <img src="${pageContext.request.contextPath}/css/images/chinchilla.png" alt="chinchilla"
             style="vertical-align:middle;"/> My Tiny Pet Clinic Login</h3>
      </div>   
      <c:if test="${not empty pageContext.request.parameterMap.error[0]}">
      	<p class="gt-error" style="width:290px">
      		  <!--
              <c:out value="${pageContext.request.parameterMap.error[0]}" />
              -->
                 <spring:message code="loginErrorLabel" text="Login Error"  htmlEscape="true"/>
          </p>
      </c:if>
      <form method="post" id="loginForm" action="${pageContext.request.contextPath}/j_spring_security_check" >
      <table class="gt-notice-box" width="300px">
      <tr> <td>
            <spring:message code="loginUsernameLabel" text="Username"  htmlEscape="true"/>
          </td> <td>
            <input type="text" name="j_username" id="j_username"/>
          </td></tr>
          <tr>
              <td>
            <spring:message code="loginPasswordLabel" text="Password"  htmlEscape="true"/>
                  </td><td>
            <input type="password" name="j_password" id="j_password"/>
              </td>
          </tr>
          <tr>
          <td colspan="2" style="text-align:center;">
            <input type="submit" value="Login" />          
           </td>
        </tr>
       </table>
           </form>
          </div>
        </body>
      </html>